package com.yt.demo.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lzf 2023/7/22 11:12:29
 */
@RestController
@RequestMapping("/config")
public class ConfigTestController {
    @Value("${config.name}")
    private String configName;

    @GetMapping("/test")
    public String test() {
        return configName;
    }
}
